package cc.mrbird.febs.common.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AreaManagerTree<T> {

    private String id;

    private String areaId;

    private String areaName;

    private String rsName;

    private String rsMobile;

    private String rsId;

    private List<AreaManagerTree<T>> children;

    private String parentId;

    private boolean hasParent = false;

    private boolean hasChildren = false;

    private Date createTime;

    private Date modifyTime;

    public void initChildren(){
        this.children = new ArrayList<>();
    }

}
